home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / IFF / IFF_Forms / ILBM.CNAM.doc < prev    next >
Encoding:
Text File  |  1993-03-01  |  1.3 KB  |  33 lines

  1. Color naming chunk (Soft-Logik)
  2.  
  3. CNAM Chunk for FORM ILBM and FORM DR2D
  4. ======================================
  5.  
  6. Submitted by Dan Weiss, Deron Kazmaier, and Gary Knight (8/29/91)
  7.  
  8. New IFF Chunk ID: "CNAM"
  9.  
  10. Description:  This chunk would provide names for the colors in a CMAP and CMYK
  11. chunk.  Each CNAM chunk will contains names for a consecutive group of colors.
  12. After the chunk length will be 2 words that identify the starting and ending
  13. color numbers that this CNAM provides names for. Each name will be a NULL
  14. terminated string. There will be (ending-starting)+1 number of NULL terminated
  15. strings in the CNAM chunk.
  16.  
  17.  
  18. Example:
  19.  
  20.         CMAP                    - CMAP chunk ID
  21.         00000009                - chunk length (9 bytes)
  22.         FF 00 00                - color #1 (r=ff, g=00, b=00)
  23.         00 FF 00                - color #2 (r=00, g=ff. b=00)
  24.         00 00 FF                - color #3 (r=00, g=00, b=00)
  25.  
  26.         CNAM                    - CNAM Chunk ID
  27.         00000011                - Chunk Length (19 bytes)
  28.         0000                    - starting color # in this CNAM chunk
  29.         0002                    - ending color # in this CNAM chunk
  30.         Red\0                   - name of color #1 (null terminated)
  31.         Green\0                 - name of color #2 (null terminated)
  32.         Blue\0                  - name of color #3 (null terminated)
  33.